import { FormSchema } from '/@/components/Table';
import { uploadApi } from '/@/api/sys/upload';

/**
 * 表单字段定义
*/
export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'ID',
    component: 'Input',
    show: false,
  },
  {
    field: 'formNo',
    label: '合同编号',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'clientName',
    label: '委托单位',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'projectType',
    label: '委托业务',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'clientManager',
    label: '联系人及电话',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'clientAddress',
    label: '地址',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },
  {
    field: 'companyName',
    label: '我方单位',
    component: 'Input',
    componentProps: {
      disabled: true,
    },
  },

  {
    field: 'isComplete',
    label: '合同完整性',
    required: true,
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '完整',
          value: 1,
          key: '1',
        },
        {
          label: '不完整',
          value: 0,
          key: '0',
        },

      ],
    },
  },
  {
    field: 'isDeliver',
    label: '盖章合同是否已递交财务室',
    required: true,
    component: 'Select',
    componentProps: {
      options: [
        {
          label: '是',
          value: 1,
          key: '1',
        },
        {
          label: '否',
          value: 0,
          key: '0',
        },

      ],
    },
  },
  {
    field: 'confirmFileList',
    label: '盖章合同',
    component: 'Upload',
    colProps: { span: 24 },
    componentProps: {
      api: uploadApi,
    },
  },
  {
    field: 'remark2',
    label: '备注',
    component: 'InputTextArea',
  },

];

